﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminMaster.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
<script type="application/javascript" src="../../Scripts/chart/awesomechart.js"></script>
                        
    <script type="application/javascript">
        function drawMyChart() {
            if (!!document.createElement('canvas').getContext) { //check that the canvas
                // element is supported
                var mychart = new AwesomeChart('canvas1');
                mychart.title = "Product Sales - 2010";
                mychart.data = [1532, 3251, 3460, 1180, 6543];
                mychart.labels = ["Desktops", "Laptops", "Netbooks", "Tablets", "Smartphones"];
                mychart.draw();
            }
        }

        window.onload = drawMyChart;
    </script>
    
     <canvas id="canvas1" width="300" height="300">
        Your web-browser does not support the HTML 5 canvas element.
    </canvas>
</asp:Content>
